package com.hr.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 *  职位经历
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Position
{
    @Id
    private int id;
    private String name;
    private Company company;
    private Department department;
    private String privilege;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date start;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date end;
    private double salary;
}
